package org.example.service;

import org.example.domain.ApplyRecord;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface ApplyRecordService {

    void addApplyRecord(ApplyRecord applyRecord);

    ApplyRecord[] getApplyRecords();//获取学生们的申请记录（未审核的）

    Integer accessApply(ApplyRecord applyRecord,Integer tag);//通过一项申请

    Integer refuseApply(ApplyRecord applyRecord);//拒绝一项申请

    ApplyRecord[] getApplyRecordsByUserId(Integer userId,Integer start);//获取指定学生的申请记录（10条）
}
